package io.github.springsongs.controller;

import io.github.springsongs.entities.CommonResult;
import io.github.springsongs.entities.Payment;
import io.github.springsongs.service.IPaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.*;

import java.util.UUID;

@RestController
public class PaymentController {


    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/payment/zk")
    public String paymentzk(){
        return "SpringCloud with zookeeper : "+serverPort+"/t"+ UUID.randomUUID().toString();
    }

}
